/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mistylinux.learnjavafx.day01;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
import javafx.scene.shape.Line;
import javafx.stage.Stage;

/**
 *
 * @author Windows
 */
public class DrawLine extends Application {

    @Override
    public void start(Stage stage) throws Exception {
        Line line = new Line(0, 0, 100, 100);
        //line.setStyle("-fx-fill:#7fffd4"); 貌似对线无效
        VBox root = new VBox(line);
        Scene scene = new Scene(root);
        stage.setScene(scene);
        stage.setMinWidth(400);
        stage.setMinHeight(300);
        stage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }
}
